﻿// IsamSelectDlg.cpp: 实现文件
//

#include "pch.h"
#include "DAOTest.h"
#include "afxdialogex.h"
#include "IsamSelectDlg.h"


// CIsamSelectDlg 对话框

IMPLEMENT_DYNAMIC(CIsamSelectDlg, CDialogEx)

CIsamSelectDlg::CIsamSelectDlg(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_DIALOG_ISAMSELECT, pParent)
	, m_strIsam(_T(""))
	, m_strDirectory(_T(""))
{

}

CIsamSelectDlg::~CIsamSelectDlg()
{
}

void CIsamSelectDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_LBString(pDX, IDC_LIST_ISAMSELECT, m_strIsam);
	DDX_Text(pDX, IDC_EDIT_ISAMSELECT, m_strDirectory);
}


BEGIN_MESSAGE_MAP(CIsamSelectDlg, CDialogEx)
END_MESSAGE_MAP()


// CIsamSelectDlg 消息处理程序


BOOL CIsamSelectDlg::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	// TODO:  在此添加额外的初始化
	CListBox* pListBox = (CListBox*)GetDlgItem(IDC_LIST_ISAMSELECT);
	pListBox->AddString(_T("dBase III"));
	pListBox->AddString(_T("dBase IV"));
	pListBox->AddString(_T("dBase 5"));
	pListBox->AddString(_T("Parado 3.x"));
	pListBox->AddString(_T("Parado 4.x"));
	pListBox->AddString(_T("Parado 5.x"));
	pListBox->AddString(_T("Btrieve"));
	pListBox->AddString(_T("FoxPro 2.0"));
	pListBox->AddString(_T("FoxPro 2.5"));
	pListBox->AddString(_T("FoxPro 2.6"));
	pListBox->AddString(_T("FoxPro 3.0"));
	pListBox->AddString(_T("FoxPro 4.0"));
	pListBox->AddString(_T("FoxPro 5.0"));
	pListBox->AddString(_T("FoxPro 7.0"));
	pListBox->AddString(_T("Text"));

	return TRUE;  // return TRUE unless you set the focus to a control
	// 异常: OCX 属性页应返回 FALSE
}
